package jp.dev7.hongo2;

import jp.dev7.android.util.AbstractDownloadActivity;
import jp.dev7.android.util.AbstractDownloadWorker;
import jp.dev7.hongo2.proto.Hongo.QuestionListProto;
import jp.dev7.hongo2.worker.DownloadWorker;

public class Download extends AbstractDownloadActivity<QuestionListProto> {

	@Override
	protected AbstractDownloadWorker<QuestionListProto> getDownloadWorker() {
		return new DownloadWorker(this, progressBar);
	}

	@Override
	protected int getLayout() {
		return R.layout.download;
	}

	@Override
	protected int getButtonId() {
		return R.id.download_button;
	}

	@Override
	protected int getMessageId() {
		return R.id.download_message;
	}

	@Override
	protected int getProgressBarId() {
		return R.id.download_progress;
	}

}
